﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QLKS.ViewModels
{
    static public class RegisterViewModel
    {
        static public bool Register(string id,string serial)
        {
            return Models.RegisterModel.Register(id, serial);
        }

        static public string GetID()
        {
            return Models.RegisterModel.GetID();
        }

        static public void WriteLic(string Serial, string FileName)
        {
            System.IO.StreamWriter f = new System.IO.StreamWriter(FileName);
            f.WriteLine(Serial);
            f.Close();
        }
    }
}
